import {ScrollView, RichText, View, Text, Image, Input, Textarea, Video} from '@tarojs/components';
import React, {Component} from 'react';
import Taro, {getCurrentInstance} from '@tarojs/taro';
import {connect} from 'react-redux';
import './index.less';
import {_} from 'wmkit';
import * as T from './types';
import actions from './actions';
import {store2Props} from './selectors';
import eyeIcon from '@/assets/image/index/eye.png';
import api from 'api';

actions().actions.loadReducer();
// @ts-ignore
@connect<Partial<T.IProps>, any>(store2Props, actions)
export default class Index extends Component<Partial<T.IProps>, any> {
  textInput: any;
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() {
    this.props.actions.init();
  }

  componentWillUnmount() {}

  render() {
    let {
      main: {remark},
      actions: {action},
    } = this.props;
    return (
      <ScrollView className="scrollView" scrollY>
        <RichText space="nbsp" nodes={_.formatRichText(remark)} />
      </ScrollView>
    );
  }
}
